package com.cnyz.properties;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.io.Serializable;

/**
 *  SwaggerConfigProperties配置类
 */
@Setter
@Getter
@NoArgsConstructor
@ToString
@Component
@ConfigurationProperties(prefix = "study.framework.swagger")
public class SwaggerConfigProperties implements Serializable {

    private String swaggerPath;

    private String title;

    private String description;

    private String contactName;

    private String contactUrl;

    private String contactEmail;

    // 新增控制swagger开关字段
    private boolean enabled = true;

    public boolean getEnabled() {
        return enabled;
    }

}
